<html>
<head>
    <title>RegExp.js Source Code | Sencha Test 1.0.3</title>
    <!--  Generated on  -->
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="css/styles.css">
</head>
<body>
    <pre class="editor editor-colors"><div class="line"><a name="line1"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line2"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@class</span></span><span>&nbsp;RegExp</span></span></span></div><div class="line"><a name="line3"><a name="RegExp"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line4"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Creates&nbsp;a&nbsp;regular&nbsp;expression&nbsp;object&nbsp;for&nbsp;matching&nbsp;text&nbsp;according&nbsp;to&nbsp;a&nbsp;pattern.</span></span></span></div><div class="line"><a name="line5"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line6"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;When&nbsp;using&nbsp;the&nbsp;constructor&nbsp;function,&nbsp;the&nbsp;normal&nbsp;string&nbsp;escape&nbsp;rules&nbsp;(preceding</span></span></span></div><div class="line"><a name="line7"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;special&nbsp;characters&nbsp;with&nbsp;\&nbsp;when&nbsp;included&nbsp;in&nbsp;a&nbsp;string)&nbsp;are&nbsp;necessary.&nbsp;For</span></span></span></div><div class="line"><a name="line8"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;example,&nbsp;the&nbsp;following&nbsp;are&nbsp;equivalent:</span></span></span></div><div class="line"><a name="line9"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line10"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;re&nbsp;=&nbsp;new&nbsp;RegExp(&quot;\\w+&quot;);</span></span></span></div><div class="line"><a name="line11"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;re&nbsp;=&nbsp;/\w+/;</span></span></span></div><div class="line"><a name="line12"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line13"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Notice&nbsp;that&nbsp;the&nbsp;parameters&nbsp;to&nbsp;the&nbsp;literal&nbsp;format&nbsp;do&nbsp;not&nbsp;use&nbsp;quotation&nbsp;marks&nbsp;to</span></span></span></div><div class="line"><a name="line14"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;indicate&nbsp;strings,&nbsp;while&nbsp;the&nbsp;parameters&nbsp;to&nbsp;the&nbsp;constructor&nbsp;function&nbsp;do&nbsp;use</span></span></span></div><div class="line"><a name="line15"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;quotation&nbsp;marks.&nbsp;So&nbsp;the&nbsp;following&nbsp;expressions&nbsp;create&nbsp;the&nbsp;same&nbsp;regular</span></span></span></div><div class="line"><a name="line16"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;expression:</span></span></span></div><div class="line"><a name="line17"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line18"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/ab+c/i;</span></span></span></div><div class="line"><a name="line19"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;RegExp(&quot;ab+c&quot;,&nbsp;&quot;i&quot;);</span></span></span></div><div class="line"><a name="line20"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line21"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;#&nbsp;Special&nbsp;characters&nbsp;in&nbsp;regular&nbsp;expressions</span></span></span></div><div class="line"><a name="line22"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line23"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Character&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Meaning</span></span></span></div><div class="line"><a name="line24"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|:-----------------|:--------------------------------------------------------------------------------------</span></span></span></div><div class="line"><a name="line25"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;characters&nbsp;that&nbsp;are&nbsp;usually&nbsp;treated&nbsp;literally,&nbsp;indicates&nbsp;that&nbsp;the&nbsp;next&nbsp;character</span></span></span></div><div class="line"><a name="line26"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;is&nbsp;special&nbsp;and&nbsp;not&nbsp;to&nbsp;be&nbsp;interpreted&nbsp;literally.</span></span></span></div><div class="line"><a name="line27"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/b/`&nbsp;matches&nbsp;the&nbsp;character&nbsp;&#39;b&#39;.&nbsp;By&nbsp;placing&nbsp;a&nbsp;backslash&nbsp;in&nbsp;front&nbsp;of&nbsp;b,&nbsp;that</span></span></span></div><div class="line"><a name="line28"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;is&nbsp;by&nbsp;using&nbsp;`/\b/`,&nbsp;the&nbsp;character&nbsp;becomes&nbsp;special&nbsp;to&nbsp;mean&nbsp;match&nbsp;a&nbsp;word&nbsp;boundary.</span></span></span></div><div class="line"><a name="line29"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line30"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;_or_</span></span></span></div><div class="line"><a name="line31"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line32"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;characters&nbsp;that&nbsp;are&nbsp;usually&nbsp;treated&nbsp;specially,&nbsp;indicates&nbsp;that&nbsp;the&nbsp;next&nbsp;character&nbsp;is</span></span></span></div><div class="line"><a name="line33"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;not&nbsp;special&nbsp;and&nbsp;should&nbsp;be&nbsp;interpreted&nbsp;literally.</span></span></span></div><div class="line"><a name="line34"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line35"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`*`&nbsp;is&nbsp;a&nbsp;special&nbsp;character&nbsp;that&nbsp;means&nbsp;0&nbsp;or&nbsp;more&nbsp;occurrences&nbsp;of&nbsp;the&nbsp;preceding</span></span></span></div><div class="line"><a name="line36"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;character&nbsp;should&nbsp;be&nbsp;matched;&nbsp;for&nbsp;example,&nbsp;`/a*\/`&nbsp;means&nbsp;match&nbsp;0&nbsp;or&nbsp;more&nbsp;&quot;a&quot;s.&nbsp;To&nbsp;match&nbsp;*</span></span></span></div><div class="line"><a name="line37"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;literally,&nbsp;precede&nbsp;it&nbsp;with&nbsp;a&nbsp;backslash;&nbsp;for&nbsp;example,&nbsp;`/a\*\/`&nbsp;matches&nbsp;&#39;a*&#39;.</span></span></span></div><div class="line"><a name="line38"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line39"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`^`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;beginning&nbsp;of&nbsp;input.&nbsp;If&nbsp;the&nbsp;multiline&nbsp;flag&nbsp;is&nbsp;set&nbsp;to&nbsp;true,&nbsp;also&nbsp;matches</span></span></span></div><div class="line"><a name="line40"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;immediately&nbsp;after&nbsp;a&nbsp;line&nbsp;break&nbsp;character.</span></span></span></div><div class="line"><a name="line41"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line42"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/^A/`&nbsp;does&nbsp;not&nbsp;match&nbsp;the&nbsp;&#39;A&#39;&nbsp;in&nbsp;&quot;an&nbsp;A&quot;,&nbsp;but&nbsp;does&nbsp;match&nbsp;the&nbsp;first&nbsp;&#39;A&#39;&nbsp;in</span></span></span></div><div class="line"><a name="line43"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&quot;An&nbsp;A&quot;.</span></span></span></div><div class="line"><a name="line44"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line45"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`$`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;end&nbsp;of&nbsp;input.&nbsp;If&nbsp;the&nbsp;multiline&nbsp;flag&nbsp;is&nbsp;set&nbsp;to&nbsp;true,&nbsp;also&nbsp;matches&nbsp;immediately</span></span></span></div><div class="line"><a name="line46"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;before&nbsp;a&nbsp;line&nbsp;break&nbsp;character.</span></span></span></div><div class="line"><a name="line47"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line48"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/t$/`&nbsp;does&nbsp;not&nbsp;match&nbsp;the&nbsp;&#39;t&#39;&nbsp;in&nbsp;&quot;eater&quot;,&nbsp;but&nbsp;does&nbsp;match&nbsp;it&nbsp;in&nbsp;&quot;eat&quot;.</span></span></span></div><div class="line"><a name="line49"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line50"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`*`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;the&nbsp;preceding&nbsp;item&nbsp;0&nbsp;or&nbsp;more&nbsp;times.</span></span></span></div><div class="line"><a name="line51"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line52"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/bo*\/`&nbsp;matches&nbsp;&#39;boooo&#39;&nbsp;in&nbsp;&quot;A&nbsp;ghost&nbsp;booooed&quot;&nbsp;and&nbsp;&#39;b&#39;&nbsp;in&nbsp;&quot;A&nbsp;bird&nbsp;warbled&quot;,</span></span></span></div><div class="line"><a name="line53"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;but&nbsp;nothing&nbsp;in&nbsp;&quot;A&nbsp;goat&nbsp;grunted&quot;.</span></span></span></div><div class="line"><a name="line54"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line55"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`+`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;the&nbsp;preceding&nbsp;item&nbsp;1&nbsp;or&nbsp;more&nbsp;times.&nbsp;Equivalent&nbsp;to&nbsp;`{1,}`.</span></span></span></div><div class="line"><a name="line56"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line57"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/a+/`&nbsp;matches&nbsp;the&nbsp;&#39;a&#39;&nbsp;in&nbsp;&quot;candy&quot;&nbsp;and&nbsp;all&nbsp;the&nbsp;a&#39;s&nbsp;in&nbsp;&quot;caaaaaaandy&quot;.</span></span></span></div><div class="line"><a name="line58"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line59"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`?`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;the&nbsp;preceding&nbsp;item&nbsp;0&nbsp;or&nbsp;1&nbsp;time.</span></span></span></div><div class="line"><a name="line60"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line61"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/e?le?/`&nbsp;matches&nbsp;the&nbsp;&#39;el&#39;&nbsp;in&nbsp;&quot;angel&quot;&nbsp;and&nbsp;the&nbsp;&#39;le&#39;&nbsp;in&nbsp;&quot;angle.&quot;</span></span></span></div><div class="line"><a name="line62"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line63"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;If&nbsp;used&nbsp;immediately&nbsp;after&nbsp;any&nbsp;of&nbsp;the&nbsp;quantifiers&nbsp;`*`,&nbsp;`+`,&nbsp;`?`,&nbsp;or&nbsp;`{}`,&nbsp;makes&nbsp;the&nbsp;quantifier</span></span></span></div><div class="line"><a name="line64"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;non-greedy&nbsp;(matching&nbsp;the&nbsp;minimum&nbsp;number&nbsp;of&nbsp;times),&nbsp;as&nbsp;opposed&nbsp;to&nbsp;the&nbsp;default,&nbsp;which&nbsp;is</span></span></span></div><div class="line"><a name="line65"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;greedy&nbsp;(matching&nbsp;the&nbsp;maximum&nbsp;number&nbsp;of&nbsp;times).</span></span></span></div><div class="line"><a name="line66"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line67"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Also&nbsp;used&nbsp;in&nbsp;lookahead&nbsp;assertions,&nbsp;described&nbsp;under&nbsp;`(?=)`,&nbsp;`(?!)`,&nbsp;and&nbsp;`(?:)`&nbsp;in&nbsp;this&nbsp;table.</span></span></span></div><div class="line"><a name="line68"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line69"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`.`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;(The&nbsp;decimal&nbsp;point)&nbsp;matches&nbsp;any&nbsp;single&nbsp;character&nbsp;except&nbsp;the&nbsp;newline&nbsp;characters:&nbsp;\n&nbsp;\r</span></span></span></div><div class="line"><a name="line70"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;\u2028&nbsp;or&nbsp;\u2029.&nbsp;(`[\s\S]`&nbsp;can&nbsp;be&nbsp;used&nbsp;to&nbsp;match&nbsp;any&nbsp;character&nbsp;including&nbsp;new&nbsp;lines.)</span></span></span></div><div class="line"><a name="line71"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line72"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/.n/`&nbsp;matches&nbsp;&#39;an&#39;&nbsp;and&nbsp;&#39;on&#39;&nbsp;in&nbsp;&quot;nay,&nbsp;an&nbsp;apple&nbsp;is&nbsp;on&nbsp;the&nbsp;tree&quot;,&nbsp;but&nbsp;not&nbsp;&#39;nay&#39;.</span></span></span></div><div class="line"><a name="line73"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line74"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`(x)`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;`x`&nbsp;and&nbsp;remembers&nbsp;the&nbsp;match.&nbsp;These&nbsp;are&nbsp;called&nbsp;capturing&nbsp;parentheses.</span></span></span></div><div class="line"><a name="line75"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line76"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/(foo)/`&nbsp;matches&nbsp;and&nbsp;remembers&nbsp;&#39;foo&#39;&nbsp;in&nbsp;&quot;foo&nbsp;bar.&quot;&nbsp;The&nbsp;matched&nbsp;substring&nbsp;can</span></span></span></div><div class="line"><a name="line77"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;be&nbsp;recalled&nbsp;from&nbsp;the&nbsp;resulting&nbsp;array&#39;s&nbsp;elements&nbsp;`[1],&nbsp;...,&nbsp;[n]`&nbsp;or&nbsp;from&nbsp;the&nbsp;predefined&nbsp;RegExp</span></span></span></div><div class="line"><a name="line78"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;object&#39;s&nbsp;properties&nbsp;`$1,&nbsp;...,&nbsp;$9`.</span></span></span></div><div class="line"><a name="line79"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line80"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`(?:x)`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;`x`&nbsp;but&nbsp;does&nbsp;not&nbsp;remember&nbsp;the&nbsp;match.&nbsp;These&nbsp;are&nbsp;called&nbsp;non-capturing&nbsp;parentheses.</span></span></span></div><div class="line"><a name="line81"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;The&nbsp;matched&nbsp;substring&nbsp;can&nbsp;not&nbsp;be&nbsp;recalled&nbsp;from&nbsp;the&nbsp;resulting&nbsp;array&#39;s&nbsp;elements&nbsp;`[1],&nbsp;...,&nbsp;[n]`</span></span></span></div><div class="line"><a name="line82"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;or&nbsp;from&nbsp;the&nbsp;predefined&nbsp;RegExp&nbsp;object&#39;s&nbsp;properties&nbsp;`$1,&nbsp;...,&nbsp;$9`.</span></span></span></div><div class="line"><a name="line83"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line84"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`x(?=y)`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;`x`&nbsp;only&nbsp;if&nbsp;`x`&nbsp;is&nbsp;followed&nbsp;by&nbsp;`y`.&nbsp;For&nbsp;example,&nbsp;`/Jack(?=Sprat)/`&nbsp;matches&nbsp;&#39;Jack&#39;&nbsp;only&nbsp;if</span></span></span></div><div class="line"><a name="line85"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;it&nbsp;is&nbsp;followed&nbsp;by&nbsp;&#39;Sprat&#39;.&nbsp;`/Jack(?=Sprat|Frost)/`&nbsp;matches&nbsp;&#39;Jack&#39;&nbsp;only&nbsp;if&nbsp;it&nbsp;is&nbsp;followed&nbsp;by</span></span></span></div><div class="line"><a name="line86"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&#39;Sprat&#39;&nbsp;or&nbsp;&#39;Frost&#39;.&nbsp;However,&nbsp;neither&nbsp;&#39;Sprat&#39;&nbsp;nor&nbsp;&#39;Frost&#39;&nbsp;is&nbsp;part&nbsp;of&nbsp;the&nbsp;match&nbsp;results.</span></span></span></div><div class="line"><a name="line87"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line88"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`x(?!y)`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;`x`&nbsp;only&nbsp;if&nbsp;`x`&nbsp;is&nbsp;not&nbsp;followed&nbsp;by&nbsp;`y`.&nbsp;For&nbsp;example,&nbsp;`/\d+(?!\.)/`&nbsp;matches&nbsp;a&nbsp;number&nbsp;only</span></span></span></div><div class="line"><a name="line89"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;if&nbsp;it&nbsp;is&nbsp;not&nbsp;followed&nbsp;by&nbsp;a&nbsp;decimal&nbsp;point.</span></span></span></div><div class="line"><a name="line90"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line91"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`/\d+(?!\.)/.exec(&quot;3.141&quot;)`&nbsp;matches&nbsp;141&nbsp;but&nbsp;not&nbsp;3.141.</span></span></span></div><div class="line"><a name="line92"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line93"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&lt;code&gt;x&amp;#124;y&lt;/code&gt;|&nbsp;Matches&nbsp;either&nbsp;`x`&nbsp;or&nbsp;`y`.</span></span></span></div><div class="line"><a name="line94"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line95"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/green|red/`&nbsp;matches&nbsp;&#39;green&#39;&nbsp;in&nbsp;&quot;green&nbsp;apple&quot;&nbsp;and&nbsp;&#39;red&#39;&nbsp;in&nbsp;&quot;red&nbsp;apple.&quot;</span></span></span></div><div class="line"><a name="line96"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line97"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`{n}`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Where&nbsp;`n`&nbsp;is&nbsp;a&nbsp;positive&nbsp;integer.&nbsp;Matches&nbsp;exactly&nbsp;n&nbsp;occurrences&nbsp;of&nbsp;the&nbsp;preceding&nbsp;item.</span></span></span></div><div class="line"><a name="line98"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line99"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/a{2}/`&nbsp;doesn&#39;t&nbsp;match&nbsp;the&nbsp;&#39;a&#39;&nbsp;in&nbsp;&quot;candy,&quot;&nbsp;but&nbsp;it&nbsp;matches&nbsp;all&nbsp;of&nbsp;the&nbsp;a&#39;s</span></span></span></div><div class="line"><a name="line100"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;in&nbsp;&quot;caandy,&quot;&nbsp;and&nbsp;the&nbsp;first&nbsp;two&nbsp;a&#39;s&nbsp;in&nbsp;&quot;caaandy.&quot;</span></span></span></div><div class="line"><a name="line101"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line102"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`{n,}`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Where&nbsp;`n`&nbsp;is&nbsp;a&nbsp;positive&nbsp;integer.&nbsp;Matches&nbsp;at&nbsp;least&nbsp;n&nbsp;occurrences&nbsp;of&nbsp;the&nbsp;preceding&nbsp;item.</span></span></span></div><div class="line"><a name="line103"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line104"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/a{2,}/`&nbsp;doesn&#39;t&nbsp;match&nbsp;the&nbsp;&#39;a&#39;&nbsp;in&nbsp;&quot;candy&quot;,&nbsp;but&nbsp;matches&nbsp;all&nbsp;of&nbsp;the&nbsp;a&#39;s&nbsp;in</span></span></span></div><div class="line"><a name="line105"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&quot;caandy&quot;&nbsp;and&nbsp;in&nbsp;&quot;caaaaaaandy.&quot;</span></span></span></div><div class="line"><a name="line106"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line107"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`{n,m}`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Where&nbsp;`n`&nbsp;and&nbsp;`m`&nbsp;are&nbsp;positive&nbsp;integers.&nbsp;Matches&nbsp;at&nbsp;least&nbsp;`n`&nbsp;and&nbsp;at&nbsp;most&nbsp;`m`&nbsp;occurrences&nbsp;of&nbsp;the</span></span></span></div><div class="line"><a name="line108"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;preceding&nbsp;item.</span></span></span></div><div class="line"><a name="line109"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line110"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/a{1,3}/`&nbsp;matches&nbsp;nothing&nbsp;in&nbsp;&quot;cndy&quot;,&nbsp;the&nbsp;&#39;a&#39;&nbsp;in&nbsp;&quot;candy,&quot;&nbsp;the&nbsp;first&nbsp;two&nbsp;a&#39;s</span></span></span></div><div class="line"><a name="line111"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;in&nbsp;&quot;caandy,&quot;&nbsp;and&nbsp;the&nbsp;first&nbsp;three&nbsp;a&#39;s&nbsp;in&nbsp;&quot;caaaaaaandy&quot;.&nbsp;Notice&nbsp;that&nbsp;when&nbsp;matching</span></span></span></div><div class="line"><a name="line112"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&quot;caaaaaaandy&quot;,&nbsp;the&nbsp;match&nbsp;is&nbsp;&quot;aaa&quot;,&nbsp;even&nbsp;though&nbsp;the&nbsp;original&nbsp;string&nbsp;had&nbsp;more&nbsp;a&#39;s&nbsp;in&nbsp;it.</span></span></span></div><div class="line"><a name="line113"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line114"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`[xyz]`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;A&nbsp;character&nbsp;set.&nbsp;Matches&nbsp;any&nbsp;one&nbsp;of&nbsp;the&nbsp;enclosed&nbsp;characters.&nbsp;You&nbsp;can&nbsp;specify&nbsp;a&nbsp;range&nbsp;of</span></span></span></div><div class="line"><a name="line115"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;characters&nbsp;by&nbsp;using&nbsp;a&nbsp;hyphen.</span></span></span></div><div class="line"><a name="line116"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line117"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`[abcd]`&nbsp;is&nbsp;the&nbsp;same&nbsp;as&nbsp;`[a-d]`.&nbsp;They&nbsp;match&nbsp;the&nbsp;&#39;b&#39;&nbsp;in&nbsp;&quot;brisket&quot;&nbsp;and&nbsp;the&nbsp;&#39;c&#39;</span></span></span></div><div class="line"><a name="line118"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;in&nbsp;&quot;chop&quot;.</span></span></span></div><div class="line"><a name="line119"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line120"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`[^xyz]`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;A&nbsp;negated&nbsp;or&nbsp;complemented&nbsp;character&nbsp;set.&nbsp;That&nbsp;is,&nbsp;it&nbsp;matches&nbsp;anything&nbsp;that&nbsp;is&nbsp;not</span></span></span></div><div class="line"><a name="line121"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;enclosed&nbsp;in&nbsp;the&nbsp;brackets.&nbsp;You&nbsp;can&nbsp;specify&nbsp;a&nbsp;range&nbsp;of&nbsp;characters&nbsp;by&nbsp;using&nbsp;a&nbsp;hyphen.</span></span></span></div><div class="line"><a name="line122"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line123"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`[^abc]`&nbsp;is&nbsp;the&nbsp;same&nbsp;as&nbsp;`[^a-c]`.&nbsp;They&nbsp;initially&nbsp;match&nbsp;&#39;r&#39;&nbsp;in&nbsp;&quot;brisket&quot;&nbsp;and</span></span></span></div><div class="line"><a name="line124"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&#39;h&#39;&nbsp;in&nbsp;&quot;chop.&quot;</span></span></span></div><div class="line"><a name="line125"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line126"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`[\b]`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;a&nbsp;backspace.&nbsp;(Not&nbsp;to&nbsp;be&nbsp;confused&nbsp;with&nbsp;`\b`.)</span></span></span></div><div class="line"><a name="line127"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line128"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\b`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;a&nbsp;word&nbsp;boundary,&nbsp;such&nbsp;as&nbsp;a&nbsp;space.&nbsp;(Not&nbsp;to&nbsp;be&nbsp;confused&nbsp;with&nbsp;`[\b]`.)</span></span></span></div><div class="line"><a name="line129"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line130"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/\bn\w/`&nbsp;matches&nbsp;the&nbsp;&#39;no&#39;&nbsp;in&nbsp;&quot;noonday&quot;;&nbsp;`/\wy\b/`&nbsp;matches&nbsp;the&nbsp;&#39;ly&#39;&nbsp;in</span></span></span></div><div class="line"><a name="line131"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&quot;possibly&nbsp;yesterday.&quot;</span></span></span></div><div class="line"><a name="line132"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line133"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\B`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;a&nbsp;non-word&nbsp;boundary.</span></span></span></div><div class="line"><a name="line134"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line135"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/\w\Bn/`&nbsp;matches&nbsp;&#39;on&#39;&nbsp;in&nbsp;&quot;noonday&quot;,&nbsp;and&nbsp;`/y\B\w/`&nbsp;matches&nbsp;&#39;ye&#39;&nbsp;in&nbsp;&quot;possibly</span></span></span></div><div class="line"><a name="line136"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;yesterday.&quot;</span></span></span></div><div class="line"><a name="line137"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line138"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\cX`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Where&nbsp;X&nbsp;is&nbsp;a&nbsp;letter&nbsp;from&nbsp;A&nbsp;-&nbsp;Z.&nbsp;Matches&nbsp;a&nbsp;control&nbsp;character&nbsp;in&nbsp;a&nbsp;string.</span></span></span></div><div class="line"><a name="line139"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line140"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/\cM/`&nbsp;matches&nbsp;control-M&nbsp;in&nbsp;a&nbsp;string.</span></span></span></div><div class="line"><a name="line141"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line142"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\d`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;a&nbsp;digit&nbsp;character&nbsp;in&nbsp;the&nbsp;basic&nbsp;Latin&nbsp;alphabet.&nbsp;Equivalent&nbsp;to&nbsp;`[0-9]`.</span></span></span></div><div class="line"><a name="line143"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line144"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/\d/`&nbsp;or&nbsp;`/[0-9]/`&nbsp;matches&nbsp;&#39;2&#39;&nbsp;in&nbsp;&quot;B2&nbsp;is&nbsp;the&nbsp;suite&nbsp;number.&quot;</span></span></span></div><div class="line"><a name="line145"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line146"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\D`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;any&nbsp;non-digit&nbsp;character&nbsp;in&nbsp;the&nbsp;basic&nbsp;Latin&nbsp;alphabet.&nbsp;Equivalent&nbsp;to&nbsp;`[^0-9]`.</span></span></span></div><div class="line"><a name="line147"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line148"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/\D/`&nbsp;or&nbsp;`/[^0-9]/`&nbsp;matches&nbsp;&#39;B&#39;&nbsp;in&nbsp;&quot;B2&nbsp;is&nbsp;the&nbsp;suite&nbsp;number.</span></span></span></div><div class="line"><a name="line149"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line150"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\f`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;a&nbsp;form-feed.</span></span></span></div><div class="line"><a name="line151"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line152"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\n`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;a&nbsp;linefeed.</span></span></span></div><div class="line"><a name="line153"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line154"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\r`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;a&nbsp;carriage&nbsp;return.</span></span></span></div><div class="line"><a name="line155"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line156"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\s`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;a&nbsp;single&nbsp;white&nbsp;space&nbsp;character,&nbsp;including&nbsp;space,&nbsp;tab,&nbsp;form&nbsp;feed,&nbsp;line&nbsp;feed&nbsp;and</span></span></span></div><div class="line"><a name="line157"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;other&nbsp;unicode&nbsp;spaces.&nbsp;Equivalent&nbsp;to:</span></span></span></div><div class="line"><a name="line158"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line159"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`[\t\n\v\f\r&nbsp;\u00a0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000]`</span></span></span></div><div class="line"><a name="line160"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line161"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/\s\w*\/`&nbsp;matches&nbsp;&#39;&nbsp;bar&#39;&nbsp;in&nbsp;&quot;foo&nbsp;bar.&quot;</span></span></span></div><div class="line"><a name="line162"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line163"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\S`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;a&nbsp;single&nbsp;character&nbsp;other&nbsp;than&nbsp;white&nbsp;space.&nbsp;Equivalent&nbsp;to:</span></span></span></div><div class="line"><a name="line164"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line165"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`[^\t\n\v\f\r&nbsp;\u00a0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000]`</span></span></span></div><div class="line"><a name="line166"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line167"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/\S\w*\/`&nbsp;matches&nbsp;&#39;foo&#39;&nbsp;in&nbsp;&quot;foo&nbsp;bar.&quot;</span></span></span></div><div class="line"><a name="line168"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line169"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\t`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;a&nbsp;tab.</span></span></span></div><div class="line"><a name="line170"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line171"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\v`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;a&nbsp;vertical&nbsp;tab.</span></span></span></div><div class="line"><a name="line172"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line173"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\w`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;any&nbsp;alphanumeric&nbsp;character&nbsp;from&nbsp;the&nbsp;basic&nbsp;Latin&nbsp;alphabet,&nbsp;including&nbsp;the</span></span></span></div><div class="line"><a name="line174"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;underscore.&nbsp;Equivalent&nbsp;to&nbsp;`[A-Za-z0-9_]`.</span></span></span></div><div class="line"><a name="line175"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line176"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/\w/`&nbsp;matches&nbsp;&#39;a&#39;&nbsp;in&nbsp;&quot;apple,&quot;&nbsp;&#39;5&#39;&nbsp;in&nbsp;&quot;$5.28,&quot;&nbsp;and&nbsp;&#39;3&#39;&nbsp;in&nbsp;&quot;3D.&quot;</span></span></span></div><div class="line"><a name="line177"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line178"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\W`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;any&nbsp;character&nbsp;that&nbsp;is&nbsp;not&nbsp;a&nbsp;word&nbsp;character&nbsp;from&nbsp;the&nbsp;basic&nbsp;Latin&nbsp;alphabet.&nbsp;Equivalent</span></span></span></div><div class="line"><a name="line179"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;to&nbsp;`[^A-Za-z0-9_]`.</span></span></span></div><div class="line"><a name="line180"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line181"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/\W/`&nbsp;or&nbsp;`/[^A-Za-z0-9_]/`&nbsp;matches&nbsp;&#39;%&#39;&nbsp;in&nbsp;&quot;50%.&quot;</span></span></span></div><div class="line"><a name="line182"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line183"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\n`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Where&nbsp;`n`&nbsp;is&nbsp;a&nbsp;positive&nbsp;integer.&nbsp;A&nbsp;back&nbsp;reference&nbsp;to&nbsp;the&nbsp;last&nbsp;substring&nbsp;matching&nbsp;the&nbsp;n</span></span></span></div><div class="line"><a name="line184"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;parenthetical&nbsp;in&nbsp;the&nbsp;regular&nbsp;expression&nbsp;(counting&nbsp;left&nbsp;parentheses).</span></span></span></div><div class="line"><a name="line185"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line186"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;For&nbsp;example,&nbsp;`/apple(,)\sorange\1/`&nbsp;matches&nbsp;&#39;apple,&nbsp;orange,&#39;&nbsp;in&nbsp;&quot;apple,&nbsp;orange,&nbsp;cherry,</span></span></span></div><div class="line"><a name="line187"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;peach.&quot;&nbsp;A&nbsp;more&nbsp;complete&nbsp;example&nbsp;follows&nbsp;this&nbsp;table.</span></span></span></div><div class="line"><a name="line188"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line189"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\0`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;a&nbsp;NULL&nbsp;character.&nbsp;Do&nbsp;not&nbsp;follow&nbsp;this&nbsp;with&nbsp;another&nbsp;digit.</span></span></span></div><div class="line"><a name="line190"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line191"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\xhh`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;the&nbsp;character&nbsp;with&nbsp;the&nbsp;code&nbsp;`hh`&nbsp;(two&nbsp;hexadecimal&nbsp;digits)</span></span></span></div><div class="line"><a name="line192"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line193"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`\uhhhh`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Matches&nbsp;the&nbsp;character&nbsp;with&nbsp;the&nbsp;Unicode&nbsp;value&nbsp;`hhhh`&nbsp;(four&nbsp;hexadecimal&nbsp;digits)</span></span></span></div><div class="line"><a name="line194"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line195"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;literal&nbsp;notation&nbsp;provides&nbsp;compilation&nbsp;of&nbsp;the&nbsp;regular&nbsp;expression&nbsp;when&nbsp;the&nbsp;expression&nbsp;is&nbsp;evaluated.&nbsp;Use</span></span></span></div><div class="line"><a name="line196"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;literal&nbsp;notation&nbsp;when&nbsp;the&nbsp;regular&nbsp;expression&nbsp;will&nbsp;remain&nbsp;constant.&nbsp;For&nbsp;example,&nbsp;if&nbsp;you&nbsp;use&nbsp;literal&nbsp;notation</span></span></span></div><div class="line"><a name="line197"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;to&nbsp;construct&nbsp;a&nbsp;regular&nbsp;expression&nbsp;used&nbsp;in&nbsp;a&nbsp;loop,&nbsp;the&nbsp;regular&nbsp;expression&nbsp;won&#39;t&nbsp;be&nbsp;recompiled&nbsp;on&nbsp;each&nbsp;iteration.</span></span></span></div><div class="line"><a name="line198"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line199"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;constructor&nbsp;of&nbsp;the&nbsp;regular&nbsp;expression&nbsp;object,&nbsp;for&nbsp;example,&nbsp;new&nbsp;RegExp(&quot;ab+c&quot;),&nbsp;provides&nbsp;runtime</span></span></span></div><div class="line"><a name="line200"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;compilation&nbsp;of&nbsp;the&nbsp;regular&nbsp;expression.&nbsp;Use&nbsp;the&nbsp;constructor&nbsp;function&nbsp;when&nbsp;you&nbsp;know&nbsp;the&nbsp;regular&nbsp;expression</span></span></span></div><div class="line"><a name="line201"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;pattern&nbsp;will&nbsp;be&nbsp;changing,&nbsp;or&nbsp;you&nbsp;don&#39;t&nbsp;know&nbsp;the&nbsp;pattern&nbsp;and&nbsp;are&nbsp;getting&nbsp;it&nbsp;from&nbsp;another&nbsp;source,&nbsp;such&nbsp;as&nbsp;user&nbsp;input.</span></span></span></div><div class="line"><a name="line202"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line203"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&lt;div&nbsp;class=&quot;notice&quot;&gt;</span></span></span></div><div class="line"><a name="line204"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Documentation&nbsp;for&nbsp;this&nbsp;class&nbsp;comes&nbsp;from&nbsp;[MDN](</span><span class="markup underline link https hyperlink"><span>https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp</span></span><span>)</span></span></span></div><div class="line"><a name="line205"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;and&nbsp;is&nbsp;available&nbsp;under&nbsp;[Creative&nbsp;Commons:&nbsp;Attribution-Sharealike&nbsp;license](</span><span class="markup underline link http hyperlink"><span>http://creativecommons.org/licenses/by-sa/2.0/</span></span><span>).</span></span></span></div><div class="line"><a name="line206"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&lt;/div&gt;</span></span></span></div><div class="line"><a name="line207"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line208"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line209"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line210"><a name="RegExp-method-constructor"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;constructor</span></span></span></div><div class="line"><a name="line211"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Creates&nbsp;new&nbsp;regular&nbsp;expression&nbsp;object.</span></span></span></div><div class="line"><a name="line212"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line213"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>pattern</span></span><span>&nbsp;</span></span></span></span></div><div class="line"><a name="line214"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;text&nbsp;of&nbsp;the&nbsp;regular&nbsp;expression.</span></span></span></div><div class="line"><a name="line215"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>flags</span></span><span>&nbsp;</span></span></span></span></div><div class="line"><a name="line216"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;specified,&nbsp;flags&nbsp;can&nbsp;have&nbsp;any&nbsp;combination&nbsp;of&nbsp;the&nbsp;following&nbsp;values:</span></span></span></div><div class="line"><a name="line217"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line218"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;-&nbsp;&quot;g&quot;&nbsp;-&nbsp;global&nbsp;match</span></span></span></div><div class="line"><a name="line219"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;-&nbsp;&quot;i&quot;&nbsp;-&nbsp;ignore&nbsp;case</span></span></span></div><div class="line"><a name="line220"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;-&nbsp;&quot;m&quot;&nbsp;-&nbsp;Treat&nbsp;beginning&nbsp;and&nbsp;end&nbsp;characters&nbsp;(^&nbsp;and&nbsp;$)&nbsp;as&nbsp;working&nbsp;over&nbsp;multiple&nbsp;lines</span></span></span></div><div class="line"><a name="line221"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;(i.e.,&nbsp;match&nbsp;the&nbsp;beginning&nbsp;or&nbsp;end&nbsp;of&nbsp;_each_&nbsp;line&nbsp;(delimited&nbsp;by&nbsp;\n&nbsp;or&nbsp;\r),&nbsp;not</span></span></span></div><div class="line"><a name="line222"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;only&nbsp;the&nbsp;very&nbsp;beginning&nbsp;or&nbsp;end&nbsp;of&nbsp;the&nbsp;whole&nbsp;input&nbsp;string)</span></span></span></div><div class="line"><a name="line223"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line224"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line225"><span class="source js"><span class="comment line double-slash js"><span class="punctuation definition comment js"><span>//</span></span><span>Methods</span><span>&nbsp;</span></span></span></div><div class="line"><a name="line226"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line227"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line228"><a name="RegExp-method-exec"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;exec</span></span></span></div><div class="line"><a name="line229"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Executes&nbsp;a&nbsp;search&nbsp;for&nbsp;a&nbsp;match&nbsp;in&nbsp;its&nbsp;string&nbsp;parameter.</span></span></span></div><div class="line"><a name="line230"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line231"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;the&nbsp;match&nbsp;succeeds,&nbsp;the&nbsp;`exec`&nbsp;method&nbsp;returns&nbsp;an&nbsp;array&nbsp;and&nbsp;updates&nbsp;properties&nbsp;of&nbsp;the&nbsp;regular</span></span></span></div><div class="line"><a name="line232"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;expression&nbsp;object.&nbsp;The&nbsp;returned&nbsp;array&nbsp;has&nbsp;the&nbsp;matched&nbsp;text&nbsp;as&nbsp;the&nbsp;first&nbsp;item,&nbsp;and&nbsp;then&nbsp;one&nbsp;item&nbsp;for</span></span></span></div><div class="line"><a name="line233"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;each&nbsp;capturing&nbsp;parenthesis&nbsp;that&nbsp;matched&nbsp;containing&nbsp;the&nbsp;text&nbsp;that&nbsp;was&nbsp;captured.&nbsp;&nbsp;If&nbsp;the&nbsp;match&nbsp;fails,</span></span></span></div><div class="line"><a name="line234"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the&nbsp;`exec`&nbsp;method&nbsp;returns&nbsp;`null`.</span></span></span></div><div class="line"><a name="line235"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line236"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;you&nbsp;are&nbsp;executing&nbsp;a&nbsp;match&nbsp;simply&nbsp;to&nbsp;find&nbsp;true&nbsp;or&nbsp;false,&nbsp;use&nbsp;the&nbsp;`test`&nbsp;method&nbsp;or&nbsp;the&nbsp;`String</span></span></span></div><div class="line"><a name="line237"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;search`&nbsp;method.</span></span></span></div><div class="line"><a name="line238"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line239"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Consider&nbsp;the&nbsp;following&nbsp;example:</span></span></span></div><div class="line"><a name="line240"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line241"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Match&nbsp;one&nbsp;d&nbsp;followed&nbsp;by&nbsp;one&nbsp;or&nbsp;more&nbsp;b&#39;s&nbsp;followed&nbsp;by&nbsp;one&nbsp;d</span></span></span></div><div class="line"><a name="line242"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Remember&nbsp;matched&nbsp;b&#39;s&nbsp;and&nbsp;the&nbsp;following&nbsp;d</span></span></span></div><div class="line"><a name="line243"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Ignore&nbsp;case</span></span></span></div><div class="line"><a name="line244"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;re&nbsp;=&nbsp;/d(b+)(d)/ig;</span></span></span></div><div class="line"><a name="line245"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;result&nbsp;=&nbsp;re.exec(&quot;cdbBdbsbz&quot;);</span></span></span></div><div class="line"><a name="line246"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line247"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;table&nbsp;shows&nbsp;the&nbsp;results&nbsp;for&nbsp;this&nbsp;script:</span></span></span></div><div class="line"><a name="line248"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line249"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;Object&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Property/Index&nbsp;|&nbsp;Description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Example</span></span></span></div><div class="line"><a name="line250"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|:-----------------|:---------------|:---------------------------------------------------------------------|:---------------------</span></span></span></div><div class="line"><a name="line251"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`result`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;The&nbsp;content&nbsp;of&nbsp;myArray.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`[&quot;dbBd&quot;,&nbsp;&quot;bB&quot;,&nbsp;&quot;d&quot;]`</span></span></span></div><div class="line"><a name="line252"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`index`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;The&nbsp;0-based&nbsp;index&nbsp;of&nbsp;the&nbsp;match&nbsp;in&nbsp;the&nbsp;string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`1`</span></span></span></div><div class="line"><a name="line253"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`input`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;The&nbsp;original&nbsp;string.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`cdbDdbsbz`</span></span></span></div><div class="line"><a name="line254"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`[0]`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;The&nbsp;last&nbsp;matched&nbsp;characters.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`dbBd`</span></span></span></div><div class="line"><a name="line255"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`[1],&nbsp;...[n]`&nbsp;&nbsp;|&nbsp;The&nbsp;parenthesized&nbsp;substring&nbsp;matches,&nbsp;if&nbsp;any.&nbsp;The&nbsp;number&nbsp;of&nbsp;possible&nbsp;&nbsp;|&nbsp;`[1]&nbsp;=&nbsp;bB`</span></span></span></div><div class="line"><a name="line256"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;parenthesized&nbsp;substrings&nbsp;is&nbsp;unlimited.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`[2]&nbsp;=&nbsp;d`</span></span></span></div><div class="line"><a name="line257"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;`re`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`lastIndex`&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;The&nbsp;index&nbsp;at&nbsp;which&nbsp;to&nbsp;start&nbsp;the&nbsp;next&nbsp;match.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`5`</span></span></span></div><div class="line"><a name="line258"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`ignoreCase`&nbsp;&nbsp;&nbsp;|&nbsp;Indicates&nbsp;the&nbsp;&quot;`i`&quot;&nbsp;flag&nbsp;was&nbsp;used&nbsp;to&nbsp;ignore&nbsp;case.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`true`</span></span></span></div><div class="line"><a name="line259"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`global`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Indicates&nbsp;the&nbsp;&quot;`g`&quot;&nbsp;flag&nbsp;was&nbsp;used&nbsp;for&nbsp;a&nbsp;global&nbsp;match.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`true`</span></span></span></div><div class="line"><a name="line260"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`multiline`&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;Indicates&nbsp;the&nbsp;&quot;`m`&quot;&nbsp;flag&nbsp;was&nbsp;used&nbsp;to&nbsp;search&nbsp;in&nbsp;strings&nbsp;across&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`false`</span></span></span></div><div class="line"><a name="line261"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;multiple&nbsp;lines.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</span></span></span></div><div class="line"><a name="line262"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;`source`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;The&nbsp;text&nbsp;of&nbsp;the&nbsp;pattern.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;d(b+)(d)</span></span></span></div><div class="line"><a name="line263"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line264"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;your&nbsp;regular&nbsp;expression&nbsp;uses&nbsp;the&nbsp;&quot;`g`&quot;&nbsp;flag,&nbsp;you&nbsp;can&nbsp;use&nbsp;the&nbsp;`exec`&nbsp;method&nbsp;multiple&nbsp;times&nbsp;to&nbsp;find</span></span></span></div><div class="line"><a name="line265"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;successive&nbsp;matches&nbsp;in&nbsp;the&nbsp;same&nbsp;string.&nbsp;When&nbsp;you&nbsp;do&nbsp;so,&nbsp;the&nbsp;search&nbsp;starts&nbsp;at&nbsp;the&nbsp;substring&nbsp;of&nbsp;`str`</span></span></span></div><div class="line"><a name="line266"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;specified&nbsp;by&nbsp;the&nbsp;regular&nbsp;expression&#39;s&nbsp;`lastIndex`&nbsp;property&nbsp;(`test`&nbsp;will&nbsp;also&nbsp;advance&nbsp;the&nbsp;`lastIndex`</span></span></span></div><div class="line"><a name="line267"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;property).&nbsp;For&nbsp;example,&nbsp;assume&nbsp;you&nbsp;have&nbsp;this&nbsp;script:</span></span></span></div><div class="line"><a name="line268"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line269"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;myRe&nbsp;=&nbsp;/ab*\/g;</span></span></span></div><div class="line"><a name="line270"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;str&nbsp;=&nbsp;&quot;abbcdefabh&quot;;</span></span></span></div><div class="line"><a name="line271"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;myArray;</span></span></span></div><div class="line"><a name="line272"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while&nbsp;((myArray&nbsp;=&nbsp;myRe.exec(str))&nbsp;!=&nbsp;null)</span></span></span></div><div class="line"><a name="line273"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{</span></span></span></div><div class="line"><a name="line274"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;msg&nbsp;=&nbsp;&quot;Found&nbsp;&quot;&nbsp;+&nbsp;myArray[0]&nbsp;+&nbsp;&quot;.&nbsp;&nbsp;&quot;;</span></span></span></div><div class="line"><a name="line275"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg&nbsp;+=&nbsp;&quot;Next&nbsp;match&nbsp;starts&nbsp;at&nbsp;&quot;&nbsp;+&nbsp;myRe.lastIndex;</span></span></span></div><div class="line"><a name="line276"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(msg);</span></span></span></div><div class="line"><a name="line277"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></span></div><div class="line"><a name="line278"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line279"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;This&nbsp;script&nbsp;displays&nbsp;the&nbsp;following&nbsp;text:</span></span></span></div><div class="line"><a name="line280"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line281"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Found&nbsp;abb.&nbsp;Next&nbsp;match&nbsp;starts&nbsp;at&nbsp;3</span></span></span></div><div class="line"><a name="line282"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Found&nbsp;ab.&nbsp;Next&nbsp;match&nbsp;starts&nbsp;at&nbsp;9</span></span></span></div><div class="line"><a name="line283"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line284"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;You&nbsp;can&nbsp;also&nbsp;use&nbsp;`exec()`&nbsp;without&nbsp;creating&nbsp;a&nbsp;RegExp&nbsp;object:</span></span></span></div><div class="line"><a name="line285"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line286"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;matches&nbsp;=&nbsp;/(hello&nbsp;\S+)/.exec(&#39;This&nbsp;is&nbsp;a&nbsp;hello&nbsp;world!&#39;);</span></span></span></div><div class="line"><a name="line287"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(matches[1]);</span></span></span></div><div class="line"><a name="line288"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line289"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;This&nbsp;will&nbsp;display&nbsp;an&nbsp;alert&nbsp;containing&nbsp;&#39;hello&nbsp;world!&#39;;</span></span></span></div><div class="line"><a name="line290"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line291"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>str</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>The&nbsp;string&nbsp;against&nbsp;which&nbsp;to&nbsp;match&nbsp;the&nbsp;regular&nbsp;expression.</span></span></span></span></span></div><div class="line"><a name="line292"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Array}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Array</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>of&nbsp;results&nbsp;or&nbsp;`NULL`.</span></span></span></span></span></div><div class="line"><a name="line293"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line294"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line295"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line296"><a name="RegExp-method-test"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;test</span></span></span></div><div class="line"><a name="line297"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Tests&nbsp;for&nbsp;a&nbsp;match&nbsp;in&nbsp;its&nbsp;string&nbsp;parameter.</span></span></span></div><div class="line"><a name="line298"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line299"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;When&nbsp;you&nbsp;want&nbsp;to&nbsp;know&nbsp;whether&nbsp;a&nbsp;pattern&nbsp;is&nbsp;found&nbsp;in&nbsp;a&nbsp;string&nbsp;use&nbsp;the&nbsp;test&nbsp;method&nbsp;(similar&nbsp;to&nbsp;the</span></span></span></div><div class="line"><a name="line300"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`String.search`&nbsp;method);&nbsp;for&nbsp;more&nbsp;information&nbsp;(but&nbsp;slower&nbsp;execution)&nbsp;use&nbsp;the&nbsp;exec&nbsp;method&nbsp;(similar&nbsp;to</span></span></span></div><div class="line"><a name="line301"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the&nbsp;`String.match`&nbsp;method).&nbsp;As&nbsp;with&nbsp;exec&nbsp;(or&nbsp;in&nbsp;combination&nbsp;with&nbsp;it),&nbsp;test&nbsp;called&nbsp;multiple&nbsp;times&nbsp;on</span></span></span></div><div class="line"><a name="line302"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the&nbsp;same&nbsp;global&nbsp;regular&nbsp;expression&nbsp;instance&nbsp;will&nbsp;advance&nbsp;past&nbsp;the&nbsp;previous&nbsp;match.</span></span></span></div><div class="line"><a name="line303"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line304"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;prints&nbsp;a&nbsp;message&nbsp;which&nbsp;depends&nbsp;on&nbsp;the&nbsp;success&nbsp;of&nbsp;the&nbsp;test:</span></span></span></div><div class="line"><a name="line305"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line306"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;testinput(re,&nbsp;str){</span></span></span></div><div class="line"><a name="line307"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(re.test(str))</span></span></span></div><div class="line"><a name="line308"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;midstring&nbsp;=&nbsp;&quot;&nbsp;contains&nbsp;&quot;;</span></span></span></div><div class="line"><a name="line309"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else</span></span></span></div><div class="line"><a name="line310"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;midstring&nbsp;=&nbsp;&quot;&nbsp;does&nbsp;not&nbsp;contain&nbsp;&quot;;</span></span></span></div><div class="line"><a name="line311"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.write&nbsp;(str&nbsp;+&nbsp;midstring&nbsp;+&nbsp;re.source);</span></span></span></div><div class="line"><a name="line312"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></span></div><div class="line"><a name="line313"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line314"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>str</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>The&nbsp;string&nbsp;against&nbsp;which&nbsp;to&nbsp;match&nbsp;the&nbsp;regular&nbsp;expression.</span></span></span></span></span></div><div class="line"><a name="line315"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Boolean}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>true</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>if&nbsp;string&nbsp;contains&nbsp;any&nbsp;matches,&nbsp;otherwise&nbsp;returns&nbsp;false.</span></span></span></span></span></div><div class="line"><a name="line316"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line317"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line318"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line319"><a name="RegExp-method-toString"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;toString</span></span></span></div><div class="line"><a name="line320"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;specified&nbsp;object.&nbsp;Overrides&nbsp;the&nbsp;`Object.prototype.toString`</span></span></span></div><div class="line"><a name="line321"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;method.</span></span></span></div><div class="line"><a name="line322"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line323"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;RegExp&nbsp;object&nbsp;overrides&nbsp;the&nbsp;`toString`&nbsp;method&nbsp;of&nbsp;the&nbsp;`Object`&nbsp;object;&nbsp;it&nbsp;does&nbsp;not&nbsp;inherit</span></span></span></div><div class="line"><a name="line324"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`Object.toString`.&nbsp;For&nbsp;RegExp&nbsp;objects,&nbsp;the&nbsp;`toString`&nbsp;method&nbsp;returns&nbsp;a&nbsp;string&nbsp;representation&nbsp;of&nbsp;the</span></span></span></div><div class="line"><a name="line325"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;regular&nbsp;expression.</span></span></span></div><div class="line"><a name="line326"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line327"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;displays&nbsp;the&nbsp;string&nbsp;value&nbsp;of&nbsp;a&nbsp;RegExp&nbsp;object:</span></span></span></div><div class="line"><a name="line328"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line329"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myExp&nbsp;=&nbsp;new&nbsp;RegExp(&quot;a+b+c&quot;);</span></span></span></div><div class="line"><a name="line330"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(myExp.toString());&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;displays&nbsp;&quot;/a+b+c/&quot;</span></span></span></div><div class="line"><a name="line331"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line332"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Regular</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>expression&nbsp;as&nbsp;a&nbsp;string.</span></span></span></span></span></div><div class="line"><a name="line333"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line334"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line335"><span class="source js"><span class="comment line double-slash js"><span class="punctuation definition comment js"><span>//</span></span><span>Properties</span><span>&nbsp;</span></span></span></div><div class="line"><a name="line336"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line337"><span class="source js"><span class="comment line double-slash js"><span class="punctuation definition comment js"><span>//</span></span><span>&nbsp;Note&nbsp;that&nbsp;several&nbsp;of&nbsp;the&nbsp;RegExp&nbsp;properties&nbsp;have&nbsp;both&nbsp;long&nbsp;and&nbsp;short&nbsp;(Perl-like)&nbsp;names.</span><span>&nbsp;</span></span></span></div><div class="line"><a name="line338"><span class="source js"><span class="comment line double-slash js"><span class="punctuation definition comment js"><span>//</span></span><span>&nbsp;Both&nbsp;names&nbsp;always&nbsp;refer&nbsp;to&nbsp;the&nbsp;same&nbsp;value.&nbsp;Perl&nbsp;is&nbsp;the&nbsp;programming&nbsp;language&nbsp;from&nbsp;which</span><span>&nbsp;</span></span></span></div><div class="line"><a name="line339"><span class="source js"><span class="comment line double-slash js"><span class="punctuation definition comment js"><span>//</span></span><span>&nbsp;JavaScript&nbsp;modeled&nbsp;its&nbsp;regular&nbsp;expressions.</span><span>&nbsp;</span></span></span></div><div class="line"><a name="line340"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line341"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line342"><a name="RegExp-property-global"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@property</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Boolean}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>global</span></span><span>&nbsp;</span></span></span></span></div><div class="line"><a name="line343"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Whether&nbsp;to&nbsp;test&nbsp;the&nbsp;regular&nbsp;expression&nbsp;against&nbsp;all&nbsp;possible&nbsp;matches&nbsp;in&nbsp;a</span></span></span></div><div class="line"><a name="line344"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;string,&nbsp;or&nbsp;only&nbsp;against&nbsp;the&nbsp;first.</span></span></span></div><div class="line"><a name="line345"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line346"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`global`&nbsp;is&nbsp;a&nbsp;property&nbsp;of&nbsp;an&nbsp;individual&nbsp;regular&nbsp;expression&nbsp;object.</span></span></span></div><div class="line"><a name="line347"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line348"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;value&nbsp;of&nbsp;`global`&nbsp;is&nbsp;true&nbsp;if&nbsp;the&nbsp;&quot;`g`&quot;&nbsp;flag&nbsp;was&nbsp;used;&nbsp;otherwise,&nbsp;`false`.&nbsp;The&nbsp;&quot;`g`&quot;&nbsp;flag</span></span></span></div><div class="line"><a name="line349"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;indicates&nbsp;that&nbsp;the&nbsp;regular&nbsp;expression&nbsp;should&nbsp;be&nbsp;tested&nbsp;against&nbsp;all&nbsp;possible&nbsp;matches&nbsp;in&nbsp;a&nbsp;string.</span></span></span></div><div class="line"><a name="line350"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line351"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;You&nbsp;cannot&nbsp;change&nbsp;this&nbsp;property&nbsp;directly.</span></span></span></div><div class="line"><a name="line352"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line353"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line354"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line355"><a name="RegExp-property-ignoreCase"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@property</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Boolean}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>ignoreCase</span></span><span>&nbsp;</span></span></span></span></div><div class="line"><a name="line356"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Whether&nbsp;to&nbsp;ignore&nbsp;case&nbsp;while&nbsp;attempting&nbsp;a&nbsp;match&nbsp;in&nbsp;a&nbsp;string.</span></span></span></div><div class="line"><a name="line357"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line358"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`ignoreCase`&nbsp;is&nbsp;a&nbsp;property&nbsp;of&nbsp;an&nbsp;individual&nbsp;regular&nbsp;expression&nbsp;object.</span></span></span></div><div class="line"><a name="line359"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line360"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;value&nbsp;of&nbsp;`ignoreCase`&nbsp;is&nbsp;true&nbsp;if&nbsp;the&nbsp;&quot;`i`&quot;&nbsp;flag&nbsp;was&nbsp;used;&nbsp;otherwise,&nbsp;false.&nbsp;The&nbsp;&quot;`i`&quot;&nbsp;flag&nbsp;indicates</span></span></span></div><div class="line"><a name="line361"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;that&nbsp;case&nbsp;should&nbsp;be&nbsp;ignored&nbsp;while&nbsp;attempting&nbsp;a&nbsp;match&nbsp;in&nbsp;a&nbsp;string.</span></span></span></div><div class="line"><a name="line362"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line363"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;You&nbsp;cannot&nbsp;change&nbsp;this&nbsp;property&nbsp;directly.</span></span></span></div><div class="line"><a name="line364"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line365"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line366"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line367"><a name="RegExp-property-lastIndex"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@property</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>lastIndex</span></span><span>&nbsp;</span></span></span></span></div><div class="line"><a name="line368"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;index&nbsp;at&nbsp;which&nbsp;to&nbsp;start&nbsp;the&nbsp;next&nbsp;match.&nbsp;A&nbsp;read/write&nbsp;integer&nbsp;property&nbsp;that&nbsp;specifies&nbsp;the&nbsp;index</span></span></span></div><div class="line"><a name="line369"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;at&nbsp;which&nbsp;to&nbsp;start&nbsp;the&nbsp;next&nbsp;match.</span></span></span></div><div class="line"><a name="line370"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line371"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`lastIndex`&nbsp;is&nbsp;a&nbsp;property&nbsp;of&nbsp;an&nbsp;individual&nbsp;regular&nbsp;expression&nbsp;object.</span></span></span></div><div class="line"><a name="line372"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line373"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;This&nbsp;property&nbsp;is&nbsp;set&nbsp;only&nbsp;if&nbsp;the&nbsp;regular&nbsp;expression&nbsp;used&nbsp;the&nbsp;&quot;`g`&quot;&nbsp;flag&nbsp;to&nbsp;indicate&nbsp;a&nbsp;global&nbsp;search.</span></span></span></div><div class="line"><a name="line374"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;rules&nbsp;apply:</span></span></span></div><div class="line"><a name="line375"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line376"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;-&nbsp;&nbsp;&nbsp;If&nbsp;`lastIndex`&nbsp;is&nbsp;greater&nbsp;than&nbsp;the&nbsp;length&nbsp;of&nbsp;the&nbsp;string,&nbsp;`regexp.test`&nbsp;and&nbsp;`regexp.exec`&nbsp;fail,</span></span></span></div><div class="line"><a name="line377"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and&nbsp;`lastIndex`&nbsp;is&nbsp;set&nbsp;to&nbsp;0.</span></span></span></div><div class="line"><a name="line378"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;-&nbsp;&nbsp;&nbsp;If&nbsp;`lastIndex`&nbsp;is&nbsp;equal&nbsp;to&nbsp;the&nbsp;length&nbsp;of&nbsp;the&nbsp;string&nbsp;and&nbsp;if&nbsp;the&nbsp;regular&nbsp;expression&nbsp;matches&nbsp;the</span></span></span></div><div class="line"><a name="line379"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;empty&nbsp;string,&nbsp;then&nbsp;the&nbsp;regular&nbsp;expression&nbsp;matches&nbsp;input&nbsp;starting&nbsp;at&nbsp;`lastIndex`.</span></span></span></div><div class="line"><a name="line380"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;-&nbsp;&nbsp;&nbsp;If&nbsp;`lastIndex`&nbsp;is&nbsp;equal&nbsp;to&nbsp;the&nbsp;length&nbsp;of&nbsp;the&nbsp;string&nbsp;and&nbsp;if&nbsp;the&nbsp;regular&nbsp;expression&nbsp;does&nbsp;not&nbsp;match</span></span></span></div><div class="line"><a name="line381"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;empty&nbsp;string,&nbsp;then&nbsp;the&nbsp;regular&nbsp;expression&nbsp;mismatches&nbsp;input,&nbsp;and&nbsp;`lastIndex`&nbsp;is&nbsp;reset&nbsp;to&nbsp;0.</span></span></span></div><div class="line"><a name="line382"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;-&nbsp;&nbsp;&nbsp;Otherwise,&nbsp;`lastIndex`&nbsp;is&nbsp;set&nbsp;to&nbsp;the&nbsp;next&nbsp;position&nbsp;following&nbsp;the&nbsp;most&nbsp;recent&nbsp;match.</span></span></span></div><div class="line"><a name="line383"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line384"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;For&nbsp;example,&nbsp;consider&nbsp;the&nbsp;following&nbsp;sequence&nbsp;of&nbsp;statements:</span></span></span></div><div class="line"><a name="line385"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line386"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;-&nbsp;&nbsp;&nbsp;`re&nbsp;=&nbsp;/(hi)?/g`&nbsp;Matches&nbsp;the&nbsp;empty&nbsp;string.</span></span></span></div><div class="line"><a name="line387"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;-&nbsp;&nbsp;&nbsp;`re(&quot;hi&quot;)`&nbsp;Returns&nbsp;`[&quot;hi&quot;,&nbsp;&quot;hi&quot;]`&nbsp;with&nbsp;`lastIndex`&nbsp;equal&nbsp;to&nbsp;2.</span></span></span></div><div class="line"><a name="line388"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;-&nbsp;&nbsp;&nbsp;`re(&quot;hi&quot;)`&nbsp;Returns&nbsp;`[&quot;&quot;]`,&nbsp;an&nbsp;empty&nbsp;array&nbsp;whose&nbsp;zeroth&nbsp;element&nbsp;is&nbsp;the&nbsp;match&nbsp;string.&nbsp;In&nbsp;this</span></span></span></div><div class="line"><a name="line389"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case,&nbsp;the&nbsp;empty&nbsp;string&nbsp;because&nbsp;`lastIndex`&nbsp;was&nbsp;2&nbsp;(and&nbsp;still&nbsp;is&nbsp;2)&nbsp;and&nbsp;&quot;`hi`&quot;&nbsp;has&nbsp;length&nbsp;2.</span></span></span></div><div class="line"><a name="line390"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line391"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line392"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line393"><a name="RegExp-property-multiline"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@property</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Boolean}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>multiline</span></span><span>&nbsp;</span></span></span></span></div><div class="line"><a name="line394"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Whether&nbsp;or&nbsp;not&nbsp;to&nbsp;search&nbsp;in&nbsp;strings&nbsp;across&nbsp;multiple&nbsp;lines.</span></span></span></div><div class="line"><a name="line395"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line396"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`multiline`&nbsp;is&nbsp;a&nbsp;property&nbsp;of&nbsp;an&nbsp;individual&nbsp;regular&nbsp;expression&nbsp;object..</span></span></span></div><div class="line"><a name="line397"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line398"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;value&nbsp;of&nbsp;`multiline`&nbsp;is&nbsp;true&nbsp;if&nbsp;the&nbsp;&quot;`m`&quot;&nbsp;flag&nbsp;was&nbsp;used;&nbsp;otherwise,&nbsp;`false`.&nbsp;The&nbsp;&quot;`m`&quot;&nbsp;flag</span></span></span></div><div class="line"><a name="line399"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;indicates&nbsp;that&nbsp;a&nbsp;multiline&nbsp;input&nbsp;string&nbsp;should&nbsp;be&nbsp;treated&nbsp;as&nbsp;multiple&nbsp;lines.&nbsp;For&nbsp;example,&nbsp;if&nbsp;&quot;`m`&quot;</span></span></span></div><div class="line"><a name="line400"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;is&nbsp;used,&nbsp;&quot;`^`&quot;&nbsp;and&nbsp;&quot;`$`&quot;&nbsp;change&nbsp;from&nbsp;matching&nbsp;at&nbsp;only&nbsp;the&nbsp;start&nbsp;or&nbsp;end&nbsp;of&nbsp;the&nbsp;entire&nbsp;string&nbsp;to&nbsp;the</span></span></span></div><div class="line"><a name="line401"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;start&nbsp;or&nbsp;end&nbsp;of&nbsp;any&nbsp;line&nbsp;within&nbsp;the&nbsp;string.</span></span></span></div><div class="line"><a name="line402"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line403"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;You&nbsp;cannot&nbsp;change&nbsp;this&nbsp;property&nbsp;directly.</span></span></span></div><div class="line"><a name="line404"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line405"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line406"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line407"><a name="RegExp-property-source"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@property</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>source</span></span><span>&nbsp;</span></span></span></span></div><div class="line"><a name="line408"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;text&nbsp;of&nbsp;the&nbsp;pattern.</span></span></span></div><div class="line"><a name="line409"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line410"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;A&nbsp;read-only&nbsp;property&nbsp;that&nbsp;contains&nbsp;the&nbsp;text&nbsp;of&nbsp;the&nbsp;pattern,&nbsp;excluding&nbsp;the&nbsp;forward&nbsp;slashes.</span></span></span></div><div class="line"><a name="line411"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line412"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`source`&nbsp;is&nbsp;a&nbsp;property&nbsp;of&nbsp;an&nbsp;individual&nbsp;regular&nbsp;expression&nbsp;object.</span></span></span></div><div class="line"><a name="line413"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line414"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;You&nbsp;cannot&nbsp;change&nbsp;this&nbsp;property&nbsp;directly.</span></span></span></div><div class="line"><a name="line415"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div></pre>
</body>
<script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
                (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

    ga('create', 'UA-1396058-28', 'auto');
    ga('send', 'pageview');

</script>
</html>
